package com.spsy.order.api;

import com.spsy.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: liuzhiping
 * @date: 2024/12/16 16:00
 **/

@FeignClient(contextId = "spsyOrderProvider" ,value = ServiceNameConstants.ORDER_SERVICE)
public interface SpsyOrderProvider {

    //底层是显示http调用
    @RequestMapping("/order/notify/ahdfioashdfa/ahiee004/asdhi93-=jg/fqwerewqer/")
    //http://ip:9298//order/notify/ahdfioashdfa/ahiee004/asdhi93-=jg/fqwerewqer/?orderId=xxx&payStatus=1
     void notify(@RequestParam(name = "orderId" ,required = false) String orderId ,
                       @RequestParam(name = "payStatus",required = false) Integer payStatus);
}
